package com.cloud.core.utils;

import android.os.Message;

/**
 * Created by Tanghaibo
 * 2018/3/23
 * description:
 */

public class MessageCreator {
    public static Message createMessage(Object object, int what) {
        Message message = Message.obtain();
        message.what = what;
        message.obj = object;
        return message;
    }

    public static Message createMessage(Object object) {
        Message message = Message.obtain();
        message.obj = object;
        return message;
    }
}
